package com.oa.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 请假表与出差表得pojo类
 *
 * @Author: 一拳超人
 * @Date: 2021/10/2 10:27
 */
@TableName("leave_and_business")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class LeaveAndBusiness implements Serializable {
    private static final long serialVersionUID = -2477713356820091466L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 事由状态(请假或出差)
     */
    private Integer reasonStatus;
    /**
     * 请假人Id
     */
    private Integer userId;
    /**
     * 事由原因
     */
    private String reasonInfo;
    /**
     * 请假或出差天数
     */
    private Integer reasonDays;
}
